<html>
	<head>
		<title>Testing Closures</title>
		<script>
			function outer( a, b ) {
				function inner( c ) { document.getElementById('d1').innerHTML = (a+b+c); return false; }
				return inner;
			}
			var o1 = outer( 1, 2 );
			var o2 = outer( 11, 12 );
		</script>
	</head>
	<body>
		<h3>Testing Closure</h3>
		<div id='d1'>0</div>
		<button onclick='return o1(3)'>o1(3)</button>
		<button onclick='return o1(4)'>o1(4)</button>
		<button onclick='return o2(1)'>o2(1)</button>
		<pre id='source'></pre>
	</body>
</html>
